package top.infopub.mgr.mkt.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.infopub.mgr.mkt.dao.ProjectApprovalDao;
import top.infopub.mgr.mkt.domain.ProjectApprovalDomain;
import top.infopub.mgr.mkt.service.ProjectApprovalService;

@Service
public class ProjectApprovalServiceImpl implements ProjectApprovalService {

    @Autowired
    private ProjectApprovalDao projectApprovalDao;

    @Override
    public Page<ProjectApprovalDomain> queryProjectApproval(Page<ProjectApprovalDomain> page, String proCode) {
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        return (Page<ProjectApprovalDomain>)projectApprovalDao.queryProjectApproval(proCode);
    }
}
